package icu.zlz.emqx.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import icu.zlz.common.core.annotation.Excel;
import icu.zlz.common.core.web.domain.BaseEntity;

/**
 * 设备组用户关联对象 iot_group_user
 *
 * @author zangsheng
 * @since 2024-12-28
 */
public class IotGroupUser extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 查询参数
     */
    private String userName;
    private String phonenumber;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    /**
     * 组ID
     */
    private Long groupId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 是否是管理者
     */
    private Boolean admin;
    /**
     * 权限
     * 0000000000 无权限
     * 1000000000 删除用户权限
     * 1100000000 添加用户权限和删除用户权限
     * 0100000000 添加用户权限
     */
    private String permissions;

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setAdmin(Boolean admin) {
        this.admin = admin;
    }

    public Boolean getAdmin() {
        return admin;
    }


    public String getPermissions() {
        return permissions;
    }

    public void setPermissions(String permissions) {
        this.permissions = permissions;
    }

    @Override
    public String toString() {
        return "IotGroupUser{" +
                "groupId=" + groupId +
                ", userId=" + userId +
                ", admin=" + admin +
                ", permissions=" + permissions +
                '}';
    }
}
